package org.fing.edu.uy.esbadp.core.constants;

public class EsbAdpPropertyConstants {
	
	public final static Long TIME_OUT_MESSAGE = 30000L;
	
	public final static String PropertyFlowServices = "PropertyFlowServices";

	public final static String AGGEGRATOR_UUID_MESSAGE = "esbadpUuidMessage";
	
	public final static String AGGEGRATOR_ID_MESSAGE = "esbadpIdMessage";
	
	public final static String AGGEGRATOR_TIME_STAMP = "esbadpTimeStamp";
	
	
	//Service, Strategies y requirement definition files.
	public final static String SERVICES_ROOT_ELEMENT = "jboss-adaptative-services";
	public final static String SERVICES_ELEMENT = "service";
	public final static String SERVICES_DEF_PATH = System.getProperty("jboss.server.config.url") + SERVICES_ROOT_ELEMENT + ".xml";
	
	public final static String REQUIREMENTS_ROOT_ELEMENT = "jboss-adaptative-service-requirements";
	public final static String REQUIREMENTS_ELEMENT = "serviceRequirement";	
	public final static String REQUIREMENTS_ELEMENT_CONDITION = "condition";
	
	public final static String REQUIREMENTS_ELEMENT_OPERATOR_GREATER = "Greater";
	public final static String REQUIREMENTS_ELEMENT_OPERATOR_LESS = "Less";
	public final static String REQUIREMENTS_ELEMENT_OPERATOR_EQUAL = "Equal";
	public final static String REQUIREMENTS_ELEMENT_OPERATOR_DISTINCT = "Distinct";
	public final static String REQUIREMENTS_ELEMENT_OPERATOR_GREATER_EQUAL = "GreaterEqual";
	public final static String REQUIREMENTS_ELEMENT_OPERATOR_LESS_EQUAL = "LessEqual";
	
	public final static String[] REQUIREMENTS_ELEMENT_OPERATORS = {REQUIREMENTS_ELEMENT_OPERATOR_GREATER,
																   REQUIREMENTS_ELEMENT_OPERATOR_LESS,
																   REQUIREMENTS_ELEMENT_OPERATOR_EQUAL,
																   REQUIREMENTS_ELEMENT_OPERATOR_DISTINCT,
																   REQUIREMENTS_ELEMENT_OPERATOR_GREATER_EQUAL,
																   REQUIREMENTS_ELEMENT_OPERATOR_LESS_EQUAL};
		
	public final static String REQUIREMENTS_ELEMENT_CONDITION_TYPE_COMPLEX = "complex";
	public final static String REQUIREMENTS_ELEMENT_CONDITION_TYPE_SIMPLE = "simple";
	public final static String REQUIREMENTS_DEF_PATH = System.getProperty("jboss.server.config.url") + REQUIREMENTS_ROOT_ELEMENT + ".xml";
	
	public final static String MONITOR_MECHANISM_ROOT_ELEMENT = "jboss-adaptative-monitor-mechanism";
	public final static String MONITOR_MECHANISM_ELEMENT = "mechanism";	
	public final static String MONITORS_MECHANISM_DEF_PATH = System.getProperty("jboss.server.config.url") + MONITOR_MECHANISM_ROOT_ELEMENT + ".xml";
	
	public final static String PROPERTIES_ROOT_ELEMENT = "jboss-adaptative-properties";
	public final static String PROPERTIES_ELEMENT = "property";		
	public final static String PROPERTIES_DEF_PATH = System.getProperty("jboss.server.config.url") + PROPERTIES_ROOT_ELEMENT + ".xml";
	
	public final static String CONFIG_PROPERTIES_ROOT_ELEMENT = "jboss-adaptative-config";
	public final static String CONFIG_PROPERTIES_ELEMENT = "configProperty";	
	public final static String CONFIG_PROPERTIES_DEF_PATH = System.getProperty("jboss.server.config.url") + CONFIG_PROPERTIES_ROOT_ELEMENT + ".xml";

}
